package com.server.store.data;

import java.util.ArrayList;
import java.util.List;

import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.Query;
import com.shared.model.Tarification;
/**
 * DAO de gestion des {@link Tarification}
 * @author queyroi
 *
 */
public class TarificationManager extends DataManager<Tarification> {

	
	static{
		ObjectifyService.register(Tarification.class);
	}
	
	@Override
	public List<Tarification> getList() {
		List<Tarification> listReturn = new ArrayList<Tarification>();
		Objectify ofy = ObjectifyService.begin();
		Query<Tarification> query = ofy.query(Tarification.class);
		for(Tarification a : query){
			listReturn.add(a);
		}
		return listReturn;
	}

	

}
